package com.zt.rongda.dashboard.controller;

import com.zt.rongda.bus.model.Bus;
import com.zt.rongda.bus.model.BusHistory;
import com.zt.rongda.bus.service.BusPositionService;
import com.zt.rongda.bus.service.BusService;
import com.zt.rongda.dashboard.service.DashboardService;
import com.zt.servlet.ReqBean;
import com.zt.servlet.RequestAttribute;
import com.zt.servlet.Response;
import com.zt.system.model.BusinessException;
import com.zt.util.StringUtil;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping(value = "/dashboard")
public class DashboardController {

    @Autowired
    private DashboardService dashboardService;

    @RequestMapping(value = "/mtApplyQuery")
    @ResponseBody
    public JSONObject mtApplyQuery(@RequestAttribute(ReqBean.NAME) ReqBean reqBean) {
        return Response.response(dashboardService.mtApplyQuery(reqBean));
    }


}
